import {
	createApp 
} from 'vue'
import Loading from './Loading.vue'

export default {
	install:function(app) {
		 //1、实例化并绑定组件
		const toastConstructor = createApp(Loading);
		const instance = toastConstructor.mount(document.createElement("div"));
		//2.将挂载的Node添加到body中
		document.body.appendChild(instance.$el);
		//3、定义全局
		app.config.globalProperties.$Loading = instance;
	}
}
